home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
TESTDOC.SCR
< prev
next >
Wrap
Text File
|
1991-12-28
|
2KB
|
67 lines
* SCRIPT: Test document mode
.clr
This is the »ye«TESTDOC»#« script. Before entering »ma«DocumentMode»#«,
the script performs some setup. These commands are displayed.
Press »bo«<enter>»#« to execute each displayed command.
Note here, we have set the »%t«/STOP»#« label to "»ye«TOC»#«" this will
assure that your readers will always return to the table of
contents menu.
|/STOP TOC
Next, because the script is called from another script (»cy«DOCUMENT.SCR»#«),
we'll assure that if the user does press »bo«<esc>»#« that they will cancel
only this script.
|/CANCEL ONE
Now we'll set »%t«DocumentMode»ye« ON»#« and start the "»cy«document»#«" portion of the
script.
|/DOCUMENT ON
:TOC
.clr
Select Chapter:
1. Chapter 1
1.1 Section 1
1.2 Section 2
2. Chapter 2
2.1 Section 1
2.2 Section 2
0. Exit
/SET Def 0
/ASK CHAPTER Def "Chapter:"
:1
{»wh«Body of chapter 1»#«}
.pg
:1.1
{»wh«Body of chapter 1 section 1»#«}
.pg
:1.2
{»wh«Body of chapter 1 section 2»#«}
.pg
:2
{»wh«Body of chapter 2»#«}
.pg
:2.1
{»wh«Body of chapter 2 section 1»#«}
.pg
:2.2
{»wh«Body of chapter 2 section 2»#«}
.pg
:0
{»wh«Exit information and remainder of script»#«}
Now we'll set »%t«DocumentMode»re« OFF»#« and continue with the remainder of
the tutorial. Remember »%t«DocumentMode»wh« can be toggled as appropriate
in your scripts»#«.
|/DOCUMENT OFF
Remember to reset the »%t«/CANCEL»#« before exiting the script....
|/CANCEL ALL
/ENDEXEC CLEAR
* END of SCRIPT